/* 顶部菜单栏整体 */
.mega-menu-bar {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0 32px;
  height: 56px;
  font-size: 18px;
  font-weight: 500;
  z-index: 10;
  position: relative;
  border-bottom: 1px solid #e7e8ed;
}

/* 一级菜单项 */
.mega-top-item {
  padding: 0 28px;
  cursor: pointer;
  line-height: 56px;
  color: #333;
  font-weight: 600 !important;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border 0.2s;
  display: inline-block;
  font-size: 17px;
}

.mega-top-item:hover,
.mega-top-item.active {
  color: #146bb5;
  border-bottom: 2px solid #146bb5;
}

/* 下拉大面板 */
.mega-dropdown {
  display: flex;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 24px 32px 24px 32px;
  min-width: 700px;
  min-height: 220px;
  border-radius: 0 0 8px 8px;
  z-index: 1001;
}

/* 分组 */
.mega-group {
  flex: 1;
  margin-right: 32px;
  min-width: 160px;
}

.mega-group:last-child {
  margin-right: 0;
}

/* 分组标题 */
.mega-group-title {
  font-weight: bold;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
  color: #333;
  font-size: 15px;
}

/* 菜单项 */
.mega-item {
  padding: 7px 0 7px 0;
  cursor: pointer;
  color: #333;
  border-radius: 4px;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}

.mega-item:hover {
  background: #f5f7fa;
  color: #146bb5;
}

/* 让下拉面板紧贴一级菜单 */
.ant-dropdown-menu,
.mega-overlay {
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: 0 !important;
}

/* 兼容 Antd Dropdown 的下拉箭头 */
.ant-dropdown-open .mega-top-item {
  color: #146bb5;
  border-bottom: 2px solid #146bb5;
}
